½Ŀ¼:

4.3. ǿƻ
   4.3.1. ȡ 'ǿƻ' б
   4.3.2. 鿴 'ǿƻ' 
   4.3.3. ƥ, ƶ
   4.3.4. ƥ, ƶ
   4.3.5.  'ǿƻ'
   4.3.6. ޸ 'ǿƻ' 
   4.3.7. ɾ 'ǿƻ'
   4.3.8. ˢѻҳ(ǿƻ)
   
4.3. ǿƻ:
==============
    
    ˵:
    (1). ǿƽָҳӵٻ, Զ̷ҳʱ, 
         ֱӷѻҳ, ޶ȵļվݿ⸺;
     
    (2). ҳܹԸ, ԼûԼ趨, 
         Ǽ, ǼٵǧСʱ;
     
    (3). ҳ潫 gzip ѹ洢ʹ, ̬ҳ(asp, php, jsp, aspx )
         ѹʱ, ڷѹ, ռõĴ 70% .
         : һ 300KB ıҳ, ѹԺΪ 70KB , ٴ 70% ,
         ڴʱ, ʡĴ.
     
    (4). ̬ҳ(asp, php, jsp, aspx )ٻ, վʱ, û
         ݿݶдƿ, ܹҳӦٶ 10 - 100 ;
    
4.3.1. ȡ 'ǿƻ' б:
     
     ˵:
     ȡȫ 'ǿƻ' б.
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=list
     
     c.  URL :
        SessionID - ¼Ự ID;
     
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
        
        NumOfLists:
        б, жٻ;
        
        NO:
        беǰöٵ, ǰöٵǵڼ, 
        Сڵ NumOfLists ֵ, ȡֵΧ: 1 ~ NumOfLists;
        
        Wid:
        ʶ ID , ÿһöӦΨһ ID , 
         Return ֵΪ True ʱ˱Ч;
        
        Url:
        ַ Url = Host + Path;
        
        Icase:
        ַǷԴСд ignore case, (0), (1);
        
        Rules:
        ַƥ, ʹͨƥ(0), ʹʽƥ(1), ȷƥ(2);
        
        Expire:
        ҳ泬ʱ, Fikker 趨, Ըҳ;
        
        Unit:
        ʱʱ䵥λ, (0), Сʱ(1), (2), (3);
        
        Icookie:
        Ignore Set-Cookie, Ƿڻҳʱ Set-Cookie, (0), (1);
        
        Olimit:
        ͿȨ, Ÿû, 浽(0); ֻŸ¼û, 浽Ա(1); ֻŸο, 浽οͻ(2);
        
        IsDiskCache:
        ǷӲ̻. (1) - ڴ滺, Ӳ̻; (0) - ֻڴ滺, Ӳ̻;
        
        Note:
        ע˵;
        
     b. Fikker سɹ(1):
     
     {
       "Return":"True"
       "NumOfLists":"2"
       "Lists":
        [
          {"NO":"1","Wid":"7","Url":"fikker.com\/images\/*.jpg","Icase":"1","Rules":"0", "Expire":"24","Unit":"1","Icookie":"1","Olimit":"0","Note":""},
          {"NO":"2","Wid":"12","Url":"fikker.com\/images\/*.bmp","Icase":"1","Rules":"0", "Expire":"24","Unit":"1","Icookie":"1","Olimit":"1","Note":""}
        ]
     }
     
     c. Fikker سɹ(2):
     
     {
       "Return":"True"
       "NumOfLists":"0"
     }
     
     d. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
     
4.3.2. 鿴 'ǿƻ' :
     
     ˵:
     鿴ָ.
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=query
     
     c.  URL :
     
        Wid - ǿƻıʶ ID;
        SessionID - ¼Ự ID;
     
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
        
        NumOfLists:
         1, Ϊ 0;
        
        NO:
        беǰö, ǰöٵǵڼ, 
        Сڵ NumOfLists ֵ, ȡֵΧ: 1 ~ NumOfLists;
        
        Wid:
        ʶ ID ,  Return ֵΪ True ʱ˱Ч;
        
        Url:
        ַ Url = Host + Path;
        
        Icase:
        ǷԴСд ignore case, (0), (1);
        
        Rules:
        ַƥ, ʹͨƥ(0), ʹʽƥ(1), ȷƥ(2);
        
        Expire:
        ҳ泬ʱ, 趨, Ըҳ;
        
        Unit:
        ʱʱ䵥λ, (0), Сʱ(1), (2), (3);
        
        Icookie:
        Ignore Set-Cookie, Ƿڻҳʱ Set-Cookie, (0), (1);
        
        Olimit:
        ͿȨ, Ÿû, 浽(0); ֻŸ¼û, 浽Ա(1); ֻŸο, 浽οͻ(2);
        
        IsDiskCache:
        ǷӲ̻. (1) - ڴ滺, Ӳ̻; (0) - ֻڴ滺, Ӳ̻;
        
        Note:
        ע˵;
  
     b. Fikker سɹ(1):
     
     {
       "Return":"True"
       "NumOfLists":"1"
       "Lists":
        [
          {"NO":"1","Wid":"7","Url":"fikker.com\/images\/*.jpg","Icase":"1","Rules":"0", "Expire":"24","Unit":"1","Icookie":"1","Note":""}
        ]
     }
     
     c. Fikker سɹ(2):
     
     {
       "Return":"True"
       "NumOfLists":"0"
     }
     
     d. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
     
4.3.3. ƥ, ƶ:

     ˵: 
     ǿƻбǰ˳ƥ, ˳ܹͨϻλ, 
     еƥ˳;
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=up
     
     c.  URL :
        
        Wid - ǿƻʶ ID, ƥ˳һλ;
        SessionID - Ա¼Ự ID;
     
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        Wid:
        ǿƻʶ ID ;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
     
     b. Fikker سɹ():
     
     {
       "Return":"True"
       "Wid":"7"
     }
     
     c. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
     
4.3.4. ƥ, ƶ:

     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=down
     
     c.  URL :
        
        Wid - ǿƻʶ ID, ƥ˳½һλ;
        SessionID - Ա¼Ự ID;
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        Wid:
        ǿƻʶ ID ;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
     
     b. Fikker سɹ():
     
     {
       "Return":"True"
       "Wid":"7"
     }
     
     c. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
     
4.3.5.  'ǿƻ':

     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=add
     
     c.  URL :
        
        Url - ַ, Url = Host + Path,  2048 ֽ;
        Icase - ַǷԴСд ignore case, (0), (1), ȱʡ(0);
        Rules - ַƥ, ʹͨƥ(0), ʹʽƥ(1), ȷƥ(2), ȱʡ(0);
        Expire - ʱ, 趨, Ըҳ;
        Unit - ʱʱ䵥λ, (0), Сʱ(1), (2), (3), ȱʡ(0);
        Icookie - Ignore Set-Cookie, Ƿڻҳʱ Cookie, (0), (1), ȱʡ(1);
        Olimit - ͿȨ, Ÿû, 浽(0); ֻŸ¼û, 浽Ա(1); ֻŸο, 浽οͻ(2); ȱʡ(0);
        IsDiskCache - ǷӲ̻. (1) - ڴ滺, Ӳ̻; (0) - ֻڴ滺, Ӳ̻;
        Note - ע˵,  500 ֽ;
        SessionID - Ա¼Ự ID;
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        Wid:
        ӵɵıʶ ID,  Return ֵΪ True ʱ˱Ч;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
     
     b. Fikker سɹ():
     
     {
       "Return":"True"
       "Wid":"7"
     }
     
     c. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
     
4.3.6. ޸ 'ǿƻ' :

     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=modify
     
     c.  URL :
        
        Wid - Ҫ޸ĵĻʶ ID;
        Url - ַ, Url = Host + Path,  2048 ֽ;
        Icase - ַǷԴСд ignore case, (0), (1), ȱʡ(0);
        Rules - ַƥ, ʹͨƥ(0), ʹʽƥ(1), ȷƥ(2), ȱʡ(0);
        Expire - ʱ, 趨, Ըҳ;
        Unit - ʱʱ䵥λ, (0), Сʱ(1), (2), (3), ȱʡ(0);
        Icookie - Ignore Set-Cookie, Ƿڻҳʱ Cookie, (0), (1), ȱʡ(1);
        Olimit - ͿȨ, Ÿû, 浽(0); ֻŸ¼û, 浽Ա(1); ֻŸο, 浽οͻ(2); ȱʡ(0);
        IsDiskCache - ǷӲ̻. (1) - ڴ滺, Ӳ̻; (0) - ֻڴ滺, Ӳ̻;
        Note - ע˵,  500 ֽ;
        SessionID - Ա¼Ự ID;
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        Wid:
        ޸ĵñʶ ID,  Return ֵΪ True ʱ˱Ч;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
     
     b. Fikker سɹ():
     
     {
       "Return":"True"
       "Wid":"7"
     }
     
     c. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
     
4.3.7. ɾ 'ǿƻ':
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=del
     
     c.  URL :
        
        Wid - ʶ ID;
        SessionID - Ա¼Ự ID;
     
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        Wid:
        ɾǿƻʶ ID;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
     
     b. Fikker سɹ():
     
     {
       "Return":"True"
       "Wid":"7"
     }
     
     c. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
     
4.3.8. ˢѻҳ(ǿƻ):
     
     ˵:
     ɾ޸Ĳǿƻʱ, ҪʾûǷҪˢѻҳ, 
     ϵͳѾҳ, ½ƥ, Բϻбҳ.
     
     +-----------------+
     |Client -> Server:|
     +-----------------+
     
     a. : POST  GET;
     
     b. : http://xxxxx.com/fikker/webcache.fik?type=fcache&cmd=freshcache
     
     c.  URL :
        
        SessionID - Ա¼Ự ID;
        
     +-----------------+
     |Server -> Client:|
     +-----------------+
     
     a. :
        
        Return: 
        , True - ɹ, False - ;
        
        ErrorNo:
        ,  Return ֵΪ False ʱ˱Ч;
     
     b. Fikker سɹ():
     
     {
       "Return":"True"
     }
     
     c. Fikker ش():
     
     {
       "Return":"False",
       "ErrorNo":"11"
     }
